/**
 * 
 */

package edu.towson.cosc.cosc455.jaldred.compiler;

import edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer;

/**
 * @author jaldre1
 *
 */
public class MySyntaxAnalyzer implements SyntaxAnalyzer {

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#lolcode()
	 */
	@Override
	// #HAI head? comment? #KTHXBYE
	public void lolcode() {
		if(MyCompiler.token.equals(null)){
		System.out.println("String is empty");
		}
		
		if(!MyCompiler.token.equalsIgnoreCase(LexicalTokens.DOC_BEGIN)){
			System.err.println("SYNTAX ERROR: " 
					+ MyCompiler.token				
					+ "when " + LexicalTokens.DOC_BEGIN
					+ "was expected.");
					System.exit(0);
		}
		else if (MyCompiler.token.equalsIgnoreCase(LexicalTokens.DOC_BEGIN)){
			System.out.println("I'm going to figure a way to put this in a parse tree eventually :(");
			MyCompiler.Lexer.getNextToken();
		}
		
		//add to parse tree
		
		
		if (MyCompiler.token.equalsIgnoreCase(LexicalTokens.HEAD_BEGIN)){
			head();
		}
		
		else if (MyCompiler.token.equalsIgnoreCase(LexicalTokens.COMM_BEGIN)){
			comment();
		}
		
		if(!MyCompiler.token.equalsIgnoreCase(LexicalTokens.DOC_END)){
			System.err.println("SYNTAX ERROR: " 
					+ MyCompiler.token				
					+ "when " + LexicalTokens.DOC_END
					+ "was expected.");
					System.exit(0);
		}
		
	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#comment()
	 */
	@Override
	public void comment() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#head()
	 */
	@Override
	public void head() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#title()
	 */
	@Override
	public void title() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#paragraph()
	 */
	@Override
	public void paragraph() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#bold()
	 */
	@Override
	public void bold() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#italics()
	 */
	@Override
	public void italics() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#list()
	 */
	@Override
	public void list() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#item()
	 */
	@Override
	public void item() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#audio()
	 */
	@Override
	public void audio() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#video()
	 */
	@Override
	public void video() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#define()
	 */
	@Override
	public void define() {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer#use()
	 */
	@Override
	public void use() {
		// TODO Auto-generated method stub

	}

}
